import React, { Component } from 'react'
import Item from '../item/item';
class List extends Component {
    constructor(props) {
        super(props);
        console.log(props)
    }
    state = {}
    render() {
        return (
            <div>
                <h1>list</h1>
                <h1>{this.props.list}</h1>
                <ul>{this.props.list.map((item, index) => <li key={index}>{item}</li>)}</ul>
                <Item></Item>
            </div>
        );
    }
}

export default List;